package com.ogawa.a7517.fragment;

import android.view.View;

import com.ogawa.a7517.Constant;
import com.ogawa.a7517.R;

public class FactoryModeFragment extends BaseFragment implements View.OnClickListener {

    @Override
    public int getLayoutId() {
        return R.layout.fragment_factory_mode;
    }

    @Override
    public void onStart() {
        super.onStart();
        setTitle("");
    }

    @Override
    public void initView(View view) {
        view.findViewById(R.id.iv_back).setOnClickListener(this);
        view.findViewById(R.id.tv_auto_check).setOnClickListener(this);
        view.findViewById(R.id.tv_copy).setOnClickListener(this);
        view.findViewById(R.id.tv_hand_check).setOnClickListener(this);
        view.findViewById(R.id.tv_other_copy_1).setOnClickListener(this);
        view.findViewById(R.id.tv_packed).setOnClickListener(this);
        view.findViewById(R.id.tv_other_copy_2).setOnClickListener(this);
        view.findViewById(R.id.tv_other_factory_check_1).setOnClickListener(this);
        view.findViewById(R.id.tv_other_copy_3).setOnClickListener(this);
        view.findViewById(R.id.tv_other_factory_check_2).setOnClickListener(this);
        view.findViewById(R.id.tv_query_info).setOnClickListener(this);
        view.findViewById(R.id.tv_other_factory_check_3).setOnClickListener(this);
        view.findViewById(R.id.tv_other_1).setOnClickListener(this);
        view.findViewById(R.id.tv_no_time_copy).setOnClickListener(this);
        view.findViewById(R.id.tv_other_2).setOnClickListener(this);
        view.findViewById(R.id.tv_tuigang_copy).setOnClickListener(this);
        view.findViewById(R.id.tv_other_3).setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();
        if (id == R.id.iv_back) {
            activity7517.popBackStack();
        } else if (id == R.id.tv_auto_check) {
            activity7517.publish(Constant.PROJECT_MODE, "1");
        } else if (id == R.id.tv_copy) {
            activity7517.publish(Constant.PROJECT_MODE, "9");
        } else if (id == R.id.tv_hand_check) {
            activity7517.publish(Constant.PROJECT_MODE, "2");
        } else if (id == R.id.tv_other_copy_1) {
            activity7517.publish(Constant.PROJECT_MODE, "10");
        } else if (id == R.id.tv_packed) {
            activity7517.publish(Constant.PROJECT_MODE, "3");
        } else if (id == R.id.tv_other_copy_2) {
            activity7517.publish(Constant.PROJECT_MODE, "11");
        } else if (id == R.id.tv_other_factory_check_1) {
            activity7517.publish(Constant.PROJECT_MODE, "4");
        } else if (id == R.id.tv_other_copy_3) {
            activity7517.publish(Constant.PROJECT_MODE, "12");
        } else if (id == R.id.tv_other_factory_check_2) {
            activity7517.publish(Constant.PROJECT_MODE, "5");
        } else if (id == R.id.tv_query_info) {
            activity7517.publish(Constant.PROJECT_MODE, "13");
        } else if (id == R.id.tv_other_factory_check_3) {
            activity7517.publish(Constant.PROJECT_MODE, "6");
        } else if (id == R.id.tv_other_1) {
            activity7517.publish(Constant.PROJECT_MODE, "14");
        } else if (id == R.id.tv_no_time_copy) {
            activity7517.publish(Constant.PROJECT_MODE, "7");
        } else if (id == R.id.tv_other_2) {
            activity7517.publish(Constant.PROJECT_MODE, "15");
        } else if (id == R.id.tv_tuigang_copy) {
            activity7517.publish(Constant.PROJECT_MODE, "8");
        } else if (id == R.id.tv_other_3) {
            activity7517.publish(Constant.PROJECT_MODE, "16");
        }
    }

}
